﻿using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{
    	/// <summary>
	/// 实体类TB_SignUpStudentsNetPayFee_Error 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_SignUpStudentsNetPayFee_Error : Entity 
	{
        public TB_SignUpStudentsNetPayFee_Error() : base("TB_SignUpStudentsNetPayFee_Error") { }   

		#region Model
		private string _OrdNO;
		private string _trade_no;
		private string _buyer_email;
		private string _body;
		private DateTime? _gmt_create;
		private DateTime? _gmt_payment;
		private string _trade_status;
		private decimal? _total_fee;
		private decimal? _price;
		private DateTime? _CreateTime;
		private string _Remark;
		private string _State;
		/// <summary>
		/// 订单编号
		/// </summary>
		public string OrdNO
		{
			get{ return _OrdNO; }
			set
			{
				this.OnPropertyValueChange(_.OrdNO,_OrdNO,value);
				this._OrdNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string trade_no
		{
			get{ return _trade_no; }
			set
			{
				this.OnPropertyValueChange(_.trade_no,_trade_no,value);
				this._trade_no=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string buyer_email
		{
			get{ return _buyer_email; }
			set
			{
				this.OnPropertyValueChange(_.buyer_email,_buyer_email,value);
				this._buyer_email=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string body
		{
			get{ return _body; }
			set
			{
				this.OnPropertyValueChange(_.body,_body,value);
				this._body=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? gmt_create
		{
			get{ return _gmt_create; }
			set
			{
				this.OnPropertyValueChange(_.gmt_create,_gmt_create,value);
				this._gmt_create=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? gmt_payment
		{
			get{ return _gmt_payment; }
			set
			{
				this.OnPropertyValueChange(_.gmt_payment,_gmt_payment,value);
				this._gmt_payment=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string trade_status
		{
			get{ return _trade_status; }
			set
			{
				this.OnPropertyValueChange(_.trade_status,_trade_status,value);
				this._trade_status=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal? total_fee
		{
			get{ return _total_fee; }
			set
			{
				this.OnPropertyValueChange(_.total_fee,_total_fee,value);
				this._total_fee=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public decimal? price
		{
			get{ return _price; }
			set
			{
				this.OnPropertyValueChange(_.price,_price,value);
				this._price=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public DateTime? CreateTime
		{
			get{ return _CreateTime; }
			set
			{
				this.OnPropertyValueChange(_.CreateTime,_CreateTime,value);
				this._CreateTime=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remark
		{
			get{ return _Remark; }
			set
			{
				this.OnPropertyValueChange(_.Remark,_Remark,value);
				this._Remark=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string State
		{
			get{ return _State; }
			set
			{
				this.OnPropertyValueChange(_.State,_State,value);
				this._State=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.OrdNO,
				_.trade_no,
				_.buyer_email,
				_.body,
				_.gmt_create,
				_.gmt_payment,
				_.trade_status,
				_.total_fee,
				_.price,
				_.CreateTime,
				_.Remark,
				_.State};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._OrdNO,
				this._trade_no,
				this._buyer_email,
				this._body,
				this._gmt_create,
				this._gmt_payment,
				this._trade_status,
				this._total_fee,
				this._price,
				this._CreateTime,
				this._Remark,
				this._State};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._OrdNO = DataUtils.ConvertValue<string>(reader["OrdNO"]);
			this._trade_no = DataUtils.ConvertValue<string>(reader["trade_no"]);
			this._buyer_email = DataUtils.ConvertValue<string>(reader["buyer_email"]);
			this._body = DataUtils.ConvertValue<string>(reader["body"]);
			this._gmt_create = DataUtils.ConvertValue<DateTime?>(reader["gmt_create"]);
			this._gmt_payment = DataUtils.ConvertValue<DateTime?>(reader["gmt_payment"]);
			this._trade_status = DataUtils.ConvertValue<string>(reader["trade_status"]);
			this._total_fee = DataUtils.ConvertValue<decimal?>(reader["total_fee"]);
			this._price = DataUtils.ConvertValue<decimal?>(reader["price"]);
			this._CreateTime = DataUtils.ConvertValue<DateTime?>(reader["CreateTime"]);
			this._Remark = DataUtils.ConvertValue<string>(reader["Remark"]);
			this._State = DataUtils.ConvertValue<string>(reader["State"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._OrdNO = DataUtils.ConvertValue<string>(row["OrdNO"]);
			this._trade_no = DataUtils.ConvertValue<string>(row["trade_no"]);
			this._buyer_email = DataUtils.ConvertValue<string>(row["buyer_email"]);
			this._body = DataUtils.ConvertValue<string>(row["body"]);
			this._gmt_create = DataUtils.ConvertValue<DateTime?>(row["gmt_create"]);
			this._gmt_payment = DataUtils.ConvertValue<DateTime?>(row["gmt_payment"]);
			this._trade_status = DataUtils.ConvertValue<string>(row["trade_status"]);
			this._total_fee = DataUtils.ConvertValue<decimal?>(row["total_fee"]);
			this._price = DataUtils.ConvertValue<decimal?>(row["price"]);
			this._CreateTime = DataUtils.ConvertValue<DateTime?>(row["CreateTime"]);
			this._Remark = DataUtils.ConvertValue<string>(row["Remark"]);
			this._State = DataUtils.ConvertValue<string>(row["State"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_SignUpStudentsNetPayFee_Error");
			/// <summary>
			/// 订单编号
			/// </summary>
			public readonly static Field OrdNO = new Field("OrdNO","TB_SignUpStudentsNetPayFee_Error","订单编号");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field trade_no = new Field("trade_no","TB_SignUpStudentsNetPayFee_Error","trade_no");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field buyer_email = new Field("buyer_email","TB_SignUpStudentsNetPayFee_Error","buyer_email");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field body = new Field("body","TB_SignUpStudentsNetPayFee_Error","body");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field gmt_create = new Field("gmt_create","TB_SignUpStudentsNetPayFee_Error","gmt_create");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field gmt_payment = new Field("gmt_payment","TB_SignUpStudentsNetPayFee_Error","gmt_payment");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field trade_status = new Field("trade_status","TB_SignUpStudentsNetPayFee_Error","trade_status");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field total_fee = new Field("total_fee","TB_SignUpStudentsNetPayFee_Error","total_fee");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field price = new Field("price","TB_SignUpStudentsNetPayFee_Error","price");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreateTime = new Field("CreateTime","TB_SignUpStudentsNetPayFee_Error","CreateTime");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remark = new Field("Remark","TB_SignUpStudentsNetPayFee_Error","Remark");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field State = new Field("State","TB_SignUpStudentsNetPayFee_Error","State");
		}
		#endregion


	}
}
